package com.ztesoft.web.taskgenerator.db.arg;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringEscapeUtils;
import org.apache.commons.lang.StringUtils;

public class DmTaskArg {
    private String pk_name = "DM_TASK_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmTaskCriteria> oredCriteria;

    public DmTaskArg() {
        oredCriteria = new ArrayList<DmTaskCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmTaskCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmTaskCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmTaskCriteria or() {
    	DmTaskCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmTaskCriteria createCriteria() {
    	DmTaskCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmTaskCriteria createCriteriaInternal() {
    	DmTaskCriteria criteria = new DmTaskCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmTaskCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmTaskCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmTaskCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmTaskCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmTaskCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmTaskCriterion(condition, value1, value2));
        }

        public DmTaskCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andDmTaskIdIsNull() {
            addCriterion("DM_TASK_ID is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdIsNotNull() {
            addCriterion("DM_TASK_ID is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdEqualTo(Integer value) {
            addCriterion("DM_TASK_ID =", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <>", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdGreaterThan(Integer value) {
            addCriterion("DM_TASK_ID >", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID >=", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdLessThan(Integer value) {
            addCriterion("DM_TASK_ID <", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_TASK_ID <=", value, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdLeftLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotLeftLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdRightLike(Integer value) {
            addCriterion("DM_TASK_ID like ", value, "DM_TASK_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotRightLike(Integer value) {
            addCriterion("DM_TASK_ID  not like ", value, "DM_TASK_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdIn(List<Integer> values) {
            addCriterion("DM_TASK_ID  in ", values, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotIn(List<Integer> values) {
            addCriterion("DM_TASK_ID not in ", values, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID between ", value1, value2, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_TASK_ID not between ", value1, value2, "DM_TASK_ID");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andDmPlanIdIsNull() {
            addCriterion("DM_PLAN_ID is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdIsNotNull() {
            addCriterion("DM_PLAN_ID is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdEqualTo(Integer value) {
            addCriterion("DM_PLAN_ID =", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotEqualTo(Integer value) {
            addCriterion("DM_PLAN_ID <>", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdGreaterThan(Integer value) {
            addCriterion("DM_PLAN_ID >", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("DM_PLAN_ID >=", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdLessThan(Integer value) {
            addCriterion("DM_PLAN_ID <", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdLessThanOrEqualTo(Integer value) {
            addCriterion("DM_PLAN_ID <=", value, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdLike(Integer value) {
            addCriterion("DM_PLAN_ID like ", value, "DM_PLAN_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotLike(Integer value) {
            addCriterion("DM_PLAN_ID  not like ", value, "DM_PLAN_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdLeftLike(Integer value) {
            addCriterion("DM_PLAN_ID like ", value, "DM_PLAN_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotLeftLike(Integer value) {
            addCriterion("DM_PLAN_ID  not like ", value, "DM_PLAN_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdRightLike(Integer value) {
            addCriterion("DM_PLAN_ID like ", value, "DM_PLAN_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotRightLike(Integer value) {
            addCriterion("DM_PLAN_ID  not like ", value, "DM_PLAN_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdIn(List<Integer> values) {
            addCriterion("DM_PLAN_ID  in ", values, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotIn(List<Integer> values) {
            addCriterion("DM_PLAN_ID not in ", values, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdBetween(Integer value1, Integer value2) {
            addCriterion("DM_PLAN_ID between ", value1, value2, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andDmPlanIdNotBetween(Integer value1, Integer value2) {
            addCriterion("DM_PLAN_ID not between ", value1, value2, "DM_PLAN_ID");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andGroupNbrIsNull() {
            addCriterion("GROUP_NBR is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrIsNotNull() {
            addCriterion("GROUP_NBR is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrEqualTo(Integer value) {
            addCriterion("GROUP_NBR =", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotEqualTo(Integer value) {
            addCriterion("GROUP_NBR <>", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrGreaterThan(Integer value) {
            addCriterion("GROUP_NBR >", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrGreaterThanOrEqualTo(Integer value) {
            addCriterion("GROUP_NBR >=", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrLessThan(Integer value) {
            addCriterion("GROUP_NBR <", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrLessThanOrEqualTo(Integer value) {
            addCriterion("GROUP_NBR <=", value, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrLike(Integer value) {
            addCriterion("GROUP_NBR like ", value, "GROUP_NBR", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotLike(Integer value) {
            addCriterion("GROUP_NBR  not like ", value, "GROUP_NBR", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrLeftLike(Integer value) {
            addCriterion("GROUP_NBR like ", value, "GROUP_NBR", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotLeftLike(Integer value) {
            addCriterion("GROUP_NBR  not like ", value, "GROUP_NBR", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrRightLike(Integer value) {
            addCriterion("GROUP_NBR like ", value, "GROUP_NBR", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotRightLike(Integer value) {
            addCriterion("GROUP_NBR  not like ", value, "GROUP_NBR", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrIn(List<Integer> values) {
            addCriterion("GROUP_NBR  in ", values, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotIn(List<Integer> values) {
            addCriterion("GROUP_NBR not in ", values, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrBetween(Integer value1, Integer value2) {
            addCriterion("GROUP_NBR between ", value1, value2, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andGroupNbrNotBetween(Integer value1, Integer value2) {
            addCriterion("GROUP_NBR not between ", value1, value2, "GROUP_NBR");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andSourceTypeIsNull() {
            addCriterion("SOURCE_TYPE is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeIsNotNull() {
            addCriterion("SOURCE_TYPE is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeEqualTo(Integer value) {
            addCriterion("SOURCE_TYPE =", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotEqualTo(Integer value) {
            addCriterion("SOURCE_TYPE <>", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeGreaterThan(Integer value) {
            addCriterion("SOURCE_TYPE >", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_TYPE >=", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeLessThan(Integer value) {
            addCriterion("SOURCE_TYPE <", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeLessThanOrEqualTo(Integer value) {
            addCriterion("SOURCE_TYPE <=", value, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeLike(Integer value) {
            addCriterion("SOURCE_TYPE like ", value, "SOURCE_TYPE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotLike(Integer value) {
            addCriterion("SOURCE_TYPE  not like ", value, "SOURCE_TYPE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeLeftLike(Integer value) {
            addCriterion("SOURCE_TYPE like ", value, "SOURCE_TYPE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotLeftLike(Integer value) {
            addCriterion("SOURCE_TYPE  not like ", value, "SOURCE_TYPE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeRightLike(Integer value) {
            addCriterion("SOURCE_TYPE like ", value, "SOURCE_TYPE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotRightLike(Integer value) {
            addCriterion("SOURCE_TYPE  not like ", value, "SOURCE_TYPE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeIn(List<Integer> values) {
            addCriterion("SOURCE_TYPE  in ", values, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotIn(List<Integer> values) {
            addCriterion("SOURCE_TYPE not in ", values, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_TYPE between ", value1, value2, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andSourceTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("SOURCE_TYPE not between ", value1, value2, "SOURCE_TYPE");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andNameIsNull() {
            addCriterion("NAME is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameIsNotNull() {
            addCriterion("NAME is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameEqualTo(String value) {
            addCriterion("NAME =", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotEqualTo(String value) {
            addCriterion("NAME <>", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameGreaterThan(String value) {
            addCriterion("NAME >", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("NAME >=", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameLessThan(String value) {
            addCriterion("NAME <", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameLessThanOrEqualTo(String value) {
            addCriterion("NAME <=", value, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameLike(String value) {
            addCriterion("NAME like ", value, "NAME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotLike(String value) {
            addCriterion("NAME  not like ", value, "NAME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameLeftLike(String value) {
            addCriterion("NAME like ", value, "NAME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotLeftLike(String value) {
            addCriterion("NAME  not like ", value, "NAME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameRightLike(String value) {
            addCriterion("NAME like ", value, "NAME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotRightLike(String value) {
            addCriterion("NAME  not like ", value, "NAME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameIn(List<String> values) {
            addCriterion("NAME  in ", values, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotIn(List<String> values) {
            addCriterion("NAME not in ", values, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameBetween(String value1, String value2) {
            addCriterion("NAME between ", value1, value2, "NAME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNameNotBetween(String value1, String value2) {
            addCriterion("NAME not between ", value1, value2, "NAME");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andPriorityIsNull() {
            addCriterion("PRIORITY is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityIsNotNull() {
            addCriterion("PRIORITY is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityEqualTo(Integer value) {
            addCriterion("PRIORITY =", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotEqualTo(Integer value) {
            addCriterion("PRIORITY <>", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityGreaterThan(Integer value) {
            addCriterion("PRIORITY >", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityGreaterThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY >=", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityLessThan(Integer value) {
            addCriterion("PRIORITY <", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityLessThanOrEqualTo(Integer value) {
            addCriterion("PRIORITY <=", value, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityLeftLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotLeftLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityRightLike(Integer value) {
            addCriterion("PRIORITY like ", value, "PRIORITY", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotRightLike(Integer value) {
            addCriterion("PRIORITY  not like ", value, "PRIORITY", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityIn(List<Integer> values) {
            addCriterion("PRIORITY  in ", values, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotIn(List<Integer> values) {
            addCriterion("PRIORITY not in ", values, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY between ", value1, value2, "PRIORITY");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andPriorityNotBetween(Integer value1, Integer value2) {
            addCriterion("PRIORITY not between ", value1, value2, "PRIORITY");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andParentTaskIdIsNull() {
            addCriterion("PARENT_TASK_ID is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdIsNotNull() {
            addCriterion("PARENT_TASK_ID is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdEqualTo(Integer value) {
            addCriterion("PARENT_TASK_ID =", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotEqualTo(Integer value) {
            addCriterion("PARENT_TASK_ID <>", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdGreaterThan(Integer value) {
            addCriterion("PARENT_TASK_ID >", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("PARENT_TASK_ID >=", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdLessThan(Integer value) {
            addCriterion("PARENT_TASK_ID <", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdLessThanOrEqualTo(Integer value) {
            addCriterion("PARENT_TASK_ID <=", value, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdLike(Integer value) {
            addCriterion("PARENT_TASK_ID like ", value, "PARENT_TASK_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotLike(Integer value) {
            addCriterion("PARENT_TASK_ID  not like ", value, "PARENT_TASK_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdLeftLike(Integer value) {
            addCriterion("PARENT_TASK_ID like ", value, "PARENT_TASK_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotLeftLike(Integer value) {
            addCriterion("PARENT_TASK_ID  not like ", value, "PARENT_TASK_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdRightLike(Integer value) {
            addCriterion("PARENT_TASK_ID like ", value, "PARENT_TASK_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotRightLike(Integer value) {
            addCriterion("PARENT_TASK_ID  not like ", value, "PARENT_TASK_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdIn(List<Integer> values) {
            addCriterion("PARENT_TASK_ID  in ", values, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotIn(List<Integer> values) {
            addCriterion("PARENT_TASK_ID not in ", values, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_TASK_ID between ", value1, value2, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andParentTaskIdNotBetween(Integer value1, Integer value2) {
            addCriterion("PARENT_TASK_ID not between ", value1, value2, "PARENT_TASK_ID");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andNeedSubtaskIsNull() {
            addCriterion("NEED_SUBTASK is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskIsNotNull() {
            addCriterion("NEED_SUBTASK is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskEqualTo(String value) {
            addCriterion("NEED_SUBTASK =", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotEqualTo(String value) {
            addCriterion("NEED_SUBTASK <>", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskGreaterThan(String value) {
            addCriterion("NEED_SUBTASK >", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskGreaterThanOrEqualTo(String value) {
            addCriterion("NEED_SUBTASK >=", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskLessThan(String value) {
            addCriterion("NEED_SUBTASK <", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskLessThanOrEqualTo(String value) {
            addCriterion("NEED_SUBTASK <=", value, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskLike(String value) {
            addCriterion("NEED_SUBTASK like ", value, "NEED_SUBTASK", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotLike(String value) {
            addCriterion("NEED_SUBTASK  not like ", value, "NEED_SUBTASK", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskLeftLike(String value) {
            addCriterion("NEED_SUBTASK like ", value, "NEED_SUBTASK", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotLeftLike(String value) {
            addCriterion("NEED_SUBTASK  not like ", value, "NEED_SUBTASK", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskRightLike(String value) {
            addCriterion("NEED_SUBTASK like ", value, "NEED_SUBTASK", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotRightLike(String value) {
            addCriterion("NEED_SUBTASK  not like ", value, "NEED_SUBTASK", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskIn(List<String> values) {
            addCriterion("NEED_SUBTASK  in ", values, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotIn(List<String> values) {
            addCriterion("NEED_SUBTASK not in ", values, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskBetween(String value1, String value2) {
            addCriterion("NEED_SUBTASK between ", value1, value2, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNeedSubtaskNotBetween(String value1, String value2) {
            addCriterion("NEED_SUBTASK not between ", value1, value2, "NEED_SUBTASK");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andScheduleDateIsNull() {
            addCriterion("SCHEDULE_DATE is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateIsNotNull() {
            addCriterion("SCHEDULE_DATE is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateEqualTo(String value) {
            addCriterion("SCHEDULE_DATE =", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotEqualTo(String value) {
            addCriterion("SCHEDULE_DATE <>", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateGreaterThan(String value) {
            addCriterion("SCHEDULE_DATE >", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateGreaterThanOrEqualTo(String value) {
            addCriterion("SCHEDULE_DATE >=", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateLessThan(String value) {
            addCriterion("SCHEDULE_DATE <", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateLessThanOrEqualTo(String value) {
            addCriterion("SCHEDULE_DATE <=", value, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateLike(String value) {
            addCriterion("SCHEDULE_DATE like ", value, "SCHEDULE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotLike(String value) {
            addCriterion("SCHEDULE_DATE  not like ", value, "SCHEDULE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateLeftLike(String value) {
            addCriterion("SCHEDULE_DATE like ", value, "SCHEDULE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotLeftLike(String value) {
            addCriterion("SCHEDULE_DATE  not like ", value, "SCHEDULE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateRightLike(String value) {
            addCriterion("SCHEDULE_DATE like ", value, "SCHEDULE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotRightLike(String value) {
            addCriterion("SCHEDULE_DATE  not like ", value, "SCHEDULE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateIn(List<String> values) {
            addCriterion("SCHEDULE_DATE  in ", values, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotIn(List<String> values) {
            addCriterion("SCHEDULE_DATE not in ", values, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateBetween(String value1, String value2) {
            addCriterion("SCHEDULE_DATE between ", value1, value2, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andScheduleDateNotBetween(String value1, String value2) {
            addCriterion("SCHEDULE_DATE not between ", value1, value2, "SCHEDULE_DATE");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andStartTimeIsNull() {
            addCriterion("START_TIME is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeIsNotNull() {
            addCriterion("START_TIME is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeEqualTo(String value) {
            addCriterion("START_TIME =", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotEqualTo(String value) {
            addCriterion("START_TIME <>", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeGreaterThan(String value) {
            addCriterion("START_TIME >", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeGreaterThanOrEqualTo(String value) {
            addCriterion("START_TIME >=", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeLessThan(String value) {
            addCriterion("START_TIME <", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeLessThanOrEqualTo(String value) {
            addCriterion("START_TIME <=", value, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeLike(String value) {
            addCriterion("START_TIME like ", value, "START_TIME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotLike(String value) {
            addCriterion("START_TIME  not like ", value, "START_TIME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeLeftLike(String value) {
            addCriterion("START_TIME like ", value, "START_TIME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotLeftLike(String value) {
            addCriterion("START_TIME  not like ", value, "START_TIME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeRightLike(String value) {
            addCriterion("START_TIME like ", value, "START_TIME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotRightLike(String value) {
            addCriterion("START_TIME  not like ", value, "START_TIME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeIn(List<String> values) {
            addCriterion("START_TIME  in ", values, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotIn(List<String> values) {
            addCriterion("START_TIME not in ", values, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeBetween(String value1, String value2) {
            addCriterion("START_TIME between ", value1, value2, "START_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStartTimeNotBetween(String value1, String value2) {
            addCriterion("START_TIME not between ", value1, value2, "START_TIME");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andEndTimeIsNull() {
            addCriterion("END_TIME is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeIsNotNull() {
            addCriterion("END_TIME is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeEqualTo(String value) {
            addCriterion("END_TIME =", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotEqualTo(String value) {
            addCriterion("END_TIME <>", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeGreaterThan(String value) {
            addCriterion("END_TIME >", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeGreaterThanOrEqualTo(String value) {
            addCriterion("END_TIME >=", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeLessThan(String value) {
            addCriterion("END_TIME <", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeLessThanOrEqualTo(String value) {
            addCriterion("END_TIME <=", value, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeLike(String value) {
            addCriterion("END_TIME like ", value, "END_TIME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotLike(String value) {
            addCriterion("END_TIME  not like ", value, "END_TIME", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeLeftLike(String value) {
            addCriterion("END_TIME like ", value, "END_TIME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotLeftLike(String value) {
            addCriterion("END_TIME  not like ", value, "END_TIME", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeRightLike(String value) {
            addCriterion("END_TIME like ", value, "END_TIME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotRightLike(String value) {
            addCriterion("END_TIME  not like ", value, "END_TIME", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeIn(List<String> values) {
            addCriterion("END_TIME  in ", values, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotIn(List<String> values) {
            addCriterion("END_TIME not in ", values, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeBetween(String value1, String value2) {
            addCriterion("END_TIME between ", value1, value2, "END_TIME");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andEndTimeNotBetween(String value1, String value2) {
            addCriterion("END_TIME not between ", value1, value2, "END_TIME");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andIsCheckIsNull() {
            addCriterion("IS_CHECK is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckIsNotNull() {
            addCriterion("IS_CHECK is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckEqualTo(Integer value) {
            addCriterion("IS_CHECK =", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotEqualTo(Integer value) {
            addCriterion("IS_CHECK <>", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckGreaterThan(Integer value) {
            addCriterion("IS_CHECK >", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckGreaterThanOrEqualTo(Integer value) {
            addCriterion("IS_CHECK >=", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckLessThan(Integer value) {
            addCriterion("IS_CHECK <", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckLessThanOrEqualTo(Integer value) {
            addCriterion("IS_CHECK <=", value, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckLike(Integer value) {
            addCriterion("IS_CHECK like ", value, "IS_CHECK", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotLike(Integer value) {
            addCriterion("IS_CHECK  not like ", value, "IS_CHECK", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckLeftLike(Integer value) {
            addCriterion("IS_CHECK like ", value, "IS_CHECK", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotLeftLike(Integer value) {
            addCriterion("IS_CHECK  not like ", value, "IS_CHECK", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckRightLike(Integer value) {
            addCriterion("IS_CHECK like ", value, "IS_CHECK", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotRightLike(Integer value) {
            addCriterion("IS_CHECK  not like ", value, "IS_CHECK", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckIn(List<Integer> values) {
            addCriterion("IS_CHECK  in ", values, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotIn(List<Integer> values) {
            addCriterion("IS_CHECK not in ", values, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckBetween(Integer value1, Integer value2) {
            addCriterion("IS_CHECK between ", value1, value2, "IS_CHECK");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andIsCheckNotBetween(Integer value1, Integer value2) {
            addCriterion("IS_CHECK not between ", value1, value2, "IS_CHECK");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andStateDateIsNull() {
            addCriterion("STATE_DATE is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateIsNotNull() {
            addCriterion("STATE_DATE is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateEqualTo(String value) {
            addCriterion("STATE_DATE =", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotEqualTo(String value) {
            addCriterion("STATE_DATE <>", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateGreaterThan(String value) {
            addCriterion("STATE_DATE >", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE_DATE >=", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateLessThan(String value) {
            addCriterion("STATE_DATE <", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateLessThanOrEqualTo(String value) {
            addCriterion("STATE_DATE <=", value, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateLeftLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotLeftLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateRightLike(String value) {
            addCriterion("STATE_DATE like ", value, "STATE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotRightLike(String value) {
            addCriterion("STATE_DATE  not like ", value, "STATE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateIn(List<String> values) {
            addCriterion("STATE_DATE  in ", values, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotIn(List<String> values) {
            addCriterion("STATE_DATE not in ", values, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateBetween(String value1, String value2) {
            addCriterion("STATE_DATE between ", value1, value2, "STATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateDateNotBetween(String value1, String value2) {
            addCriterion("STATE_DATE not between ", value1, value2, "STATE_DATE");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andCreateDateIsNull() {
            addCriterion("CREATE_DATE is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateIsNotNull() {
            addCriterion("CREATE_DATE is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateEqualTo(Date value) {
            addCriterion("CREATE_DATE =", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotEqualTo(Date value) {
            addCriterion("CREATE_DATE <>", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateGreaterThan(Date value) {
            addCriterion("CREATE_DATE >", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE >=", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateLessThan(Date value) {
            addCriterion("CREATE_DATE <", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_DATE <=", value, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateLeftLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotLeftLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateRightLike(Date value) {
            addCriterion("CREATE_DATE like ", value, "CREATE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotRightLike(Date value) {
            addCriterion("CREATE_DATE  not like ", value, "CREATE_DATE", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateIn(List<Date> values) {
            addCriterion("CREATE_DATE  in ", values, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotIn(List<Date> values) {
            addCriterion("CREATE_DATE not in ", values, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE between ", value1, value2, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andCreateDateNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_DATE not between ", value1, value2, "CREATE_DATE");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andErrorDescIsNull() {
            addCriterion("ERROR_DESC is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescIsNotNull() {
            addCriterion("ERROR_DESC is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescEqualTo(String value) {
            addCriterion("ERROR_DESC =", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotEqualTo(String value) {
            addCriterion("ERROR_DESC <>", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescGreaterThan(String value) {
            addCriterion("ERROR_DESC >", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescGreaterThanOrEqualTo(String value) {
            addCriterion("ERROR_DESC >=", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescLessThan(String value) {
            addCriterion("ERROR_DESC <", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescLessThanOrEqualTo(String value) {
            addCriterion("ERROR_DESC <=", value, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescLeftLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotLeftLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescRightLike(String value) {
            addCriterion("ERROR_DESC like ", value, "ERROR_DESC", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotRightLike(String value) {
            addCriterion("ERROR_DESC  not like ", value, "ERROR_DESC", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescIn(List<String> values) {
            addCriterion("ERROR_DESC  in ", values, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotIn(List<String> values) {
            addCriterion("ERROR_DESC not in ", values, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescBetween(String value1, String value2) {
            addCriterion("ERROR_DESC between ", value1, value2, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andErrorDescNotBetween(String value1, String value2) {
            addCriterion("ERROR_DESC not between ", value1, value2, "ERROR_DESC");
            return (DmTaskCriteria) this;
        }
        public DmTaskCriteria andNodeIdIsNull() {
            addCriterion("NODE_ID is null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdIsNotNull() {
            addCriterion("NODE_ID is not null");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdEqualTo(Integer value) {
            addCriterion("NODE_ID =", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotEqualTo(Integer value) {
            addCriterion("NODE_ID <>", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdGreaterThan(Integer value) {
            addCriterion("NODE_ID >", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("NODE_ID >=", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdLessThan(Integer value) {
            addCriterion("NODE_ID <", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdLessThanOrEqualTo(Integer value) {
            addCriterion("NODE_ID <=", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 1);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdLeftLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotLeftLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 0);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdRightLike(Integer value) {
            addCriterion("NODE_ID like ", value, "NODE_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotRightLike(Integer value) {
            addCriterion("NODE_ID  not like ", value, "NODE_ID", 2);
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdIn(List<Integer> values) {
            addCriterion("NODE_ID  in ", values, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotIn(List<Integer> values) {
            addCriterion("NODE_ID not in ", values, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdBetween(Integer value1, Integer value2) {
            addCriterion("NODE_ID between ", value1, value2, "NODE_ID");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andNodeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("NODE_ID not between ", value1, value2, "NODE_ID");
            return (DmTaskCriteria) this;
        }
        
        
        
        
        
        //任务监控 列表统计
        public DmTaskCriteria andNodeIdAEqualTo(Integer value) {
            addCriterion("a.NODE_ID =", value, "NODE_ID");
            return (DmTaskCriteria) this;
        }
        
        public DmTaskCriteria andStateBEqualTo(String value) {
            addCriterion("b.STATE =", value, "STATE");
            return (DmTaskCriteria) this;
        }

        public DmTaskCriteria andStateAIn(List<String> values) {
            addCriterion("a.STATE  in ", values, "STATE");
            return (DmTaskCriteria) this;
        }
        
        public DmTaskCriteria andStateAEqualTo(String value) {
        	addCriterion("a.STATE =", value, "STATE");
        	return (DmTaskCriteria) this;
        }
        
        public DmTaskCriteria andPlanNameBEqualTo(String value) {
            addCriterion("b.PLAN_NAME =", value, "PLAN_NAME");
            return (DmTaskCriteria) this;
        }
        
    }

    public static class DmTaskCriteria extends GeneratedCriteria {

        protected DmTaskCriteria() {
            super();
        }
    }

    public static class DmTaskCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmTaskCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmTaskCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmTaskCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmTaskCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmTaskCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmTaskCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}